package com.yilin.tms.capital.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.tms.core.entity.capital.BankCard;
import com.yilin.tms.core.entity.capital.PayChannel;
import com.yilin.tms.core.entity.user.account.Account;

import java.util.List;

public interface IBankCardService extends IService<BankCard> {

    //根据银行卡号查询
    BankCard getBackCardByNo(String bankAccNo);

    //根据银行卡号查询
    BankCard getBackCardById(String id);

    //获取默认收款卡
    BankCard getDefaultBankCardByOrganizeId(String organizeId);

    List<BankCard> getDefaultBankCardListByOrganizeId(String[] organizeIds);

    List<BankCard> getBackCardList(Account loginUser, String bankShortName);

    void saveBankCard(Account loginUser, BankCard bankCard);

    //--------------------------------------------------------------------------

    void savePayChannel(Account loginUser, PayChannel payChannel);

    PayChannel getPayChannelByBankType(Account loginUser, PayChannel.BankType bankType);

    List<PayChannel> getPayChannelList(Account loginUser);

}
